# define _CRT_SECURE_NO_WARNINGS 1

#include "LevelOrder.h"

int main()
{
	BTNode* A = (BTNode*)malloc(sizeof(BTNode));
	A->data = 'A';

	BTNode* B = (BTNode*)malloc(sizeof(BTNode));
	B->data = 'B';

	BTNode* C = (BTNode*)malloc(sizeof(BTNode));
	C->data = 'C';

	BTNode* D = (BTNode*)malloc(sizeof(BTNode));
	D->data = 'D';

	BTNode* E = (BTNode*)malloc(sizeof(BTNode));
	E->data = 'E';

	BTNode* F = (BTNode*)malloc(sizeof(BTNode));
	F->data = 'F';

	A->left = B;
	A->right = C;
	B->left = D;
	B->right = E;
	C->left = NULL;
	C->right = NULL;
	D->left = NULL;
	D->right = NULL;
	E->left = NULL;
	E->right = NULL;
	D->right = NULL;
	LevelOrder(A);
	return 0;
}
